#include "senderthread.h"
#include <QDebug>

SenderThread::SenderThread(QObject *parent)
    : QThread(parent)
    , msg("Hello World")
{

}

SenderThread::~SenderThread()
{

}

void SenderThread::run()
{
     qDebug() << "Sender Thread id: " << currentThreadId();

     for (int i = 0; i < 10; ++i){
         emit sendMsg(msg);
         sleep(2);
     }

     qDebug() << "Sender finished!";
}
